<html lang="en">
  <head>
    <include file="Public/header"/>
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="__PUBLIC__/Admin/assets/img/logo.png" alt="Realm Admin Template">
          </div>
           <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
            <ul class="pull-left">
              <li><a id="messages" data-notification="2" href="#"><i class="icon-envelope"></i> Messages</a></li>
              <li><a id="notifications" data-notification="3" href="#"><i class="icon-globe"></i> Notifications</a></li>
            </ul>
            <ul class="pull-right">  
              <li><a href="{:U('User/exitLog')}"><i class="icon-off"></i> Logout</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">
    
    <include file="Public/menu"/>  

      <!-- Main window -->
      <div class="main_container" id="users_page">

        

        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>Presales</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <!--  <?php //dump($lost);
                    //echo dump($user[0]['telephone']);?> -->
            <form class="form-horizontal"  method="post" action="__URL__/updatepresale" ctype="multipart/form-data">
                <input type="hidden" name="id" value="<?php echo $pre[0]['id']; ?>">
                 <input type="hidden" name="function" value="<?php echo $pre[0]['function']; ?>">
       <div class="widget-body">
              <div class="widget-forms clearfix">
                <form class="form-horizontal">
                 <div class="control-group">
                    <label class="control-label">预售品牌:</label>
                    <div class="controls">
                      <input class="span7 tip" name="sign" data-title="预售品牌" type="text"  value=<?php  echo $pre[0]['sign'];  ?>>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label">预售型号:</label>
                    <div class="controls" >
                      <input class="span7 tip"  name="model" data-title="预售型号" type="text"  value=<?php  echo $pre[0]['model'];  ?>>
                    </div>
                </div>

                    

                <div class="control-group">
                    <label class="control-label">颜色:</label>
                    <div class="controls">
                      <input class="span7 tip" name="color" data-title="颜色" type="text"  value=<?php  echo $pre[0]['color'];  ?>>
                    </div>
                </div>


                  <div class="control-group">
                    <label class="control-label">预售时间:</label>
                <div class="controls">
                      <input class="span7 tip" name="time" data-title="预售时间" type="text"  value=<?php  echo $pre[0]['time'];  ?>>
                    </div>
                </div>

                 <div class="control-group">
                    <label class="control-label">预售性能:</label>
                <div class="controls">
                      <input class="span7 tip" name="function" data-title="预售性能" type="text"  value=<?php  echo $pre[0]['function'];  ?>>
                    </div>
                </div>
                
            
               
                 <div class="control-group">
                    <label class="control-label">预售图片:</label>
                    <div class="controls">
                      <img class="img-thumbnail"  src="__PUBLIC__/Admin/prepicture/<?php  echo $pre[0]['picture'];  ?>" width="90" height="80" alt="未上传图片"> 
                    </div>
                </div>

                    <div class="form-group">
                    <label class="control-label">选择新图片</label>
                     <div class="controls">
                        <input type="file" name="picture">  
                    </div>             
                 </div>
            
            <div class="widget-footer">
            <div class="controls">
               <button class="btn btn-primary" type="submit">保存修改信息</button>                 
                <a href="javascript:history.go(-1);"><button class="btn" type="button">取消</button></a> 
            </div>
            </div>
            </form>



           
               </thead>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->
  
    <include file="Public/footer"/>
    
  </body>
</html>


                 
 

















